import type { AppRouteModule } from '/@/router/types';

const monitorRoute: AppRouteModule = {
  path: '/digital-home/monitor',
  name: 'Monitor',
  redirect: '/digital-home/monitor/overview', // 默认打开总览页
  meta: { title: '监控中心' },
  children: [
    // 总览页（匹配图片中绿色对勾的 components/index.vue）
    {
      path: 'overview',
      name: 'MonitorOverview',
      component: () => import('/src/views/DigitalTwin/monitor/overview/components/index.vue'),
      meta: { title: '总览' },
    },
    // 控制中心（匹配图片中 control/index.vue）
    {
      path: 'control',
      name: 'MonitorControl',
      component: () => import('/src/views/DigitalTwin/monitor/control/components/index.vue'),
      meta: { title: '控制台' },
    },
  ],
};

export default monitorRoute;
